﻿using System.Data.Common;

namespace EFCoreQuickStart
{
    internal class Program
    {
        static void Main(string[] args)
        {
            var db = new ModelDbContext();
            Console.WriteLine("插入一条数据");
            db.Models.Add(new Model { Text = "这是一段话" });

            //查询
            var model = db.Models.OrderBy(x => x.Text).First();

            //更新
            model.Text = "这是更新后的一条记录";

            db.Models.Remove(model);







        }
    }
}
